import { wsResult } from "@/entity/ws"

//初始化获取
const state = {
  allMessage: []
}
const getters = {
  getAllMessage(state: any): wsResult[] {
    return state.allMessage
  }
}
//设置token
const mutations = {
  // 设置用户的Token
  setJoinPerson(state: any, obj: wsResult): void {
    state.allMessage.push(obj)
  }
}
const actions = {

}

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}